package com.jewelry.common.util;

import java.math.BigDecimal;

/**
 * 数字操作工具类
 * 
 * @author zheng
 * 
 */
public final class NumberUtil {

	public static final BigDecimal getBigDecimal(double number, int scale) {
		return BigDecimal.valueOf(number).setScale(scale,
				BigDecimal.ROUND_HALF_UP);
	}
	
	
}
